Set options
knitr::opts_chunk$set(
warning = FALSE, # show warnings during codebook generation
message = FALSE, # show messages during codebook generation
error = TRUE, # do not interrupt codebook generation in case of errors,
# usually better for debugging
echo = TRUE # show R code
)
ggplot2::theme_set(ggplot2::theme_bw())
Prepare codebook
library(codebook)
library(labelled)
# Load data
codebook_data <- vroom::vroom(here::here("Data/Processed/Exp2/Kan_Processed_Exp2_Main_Acc_data.tsv"))
# Label variables
var_label(codebook_data$participant_id) <- "Unique identifier of the participant"
var_label(codebook_data$lab) <- "Unique identifier of the data collection site"
var_label(codebook_data$loop_num) <- "Unique identifier of pseudo randomized stimulus set that was shown to the participant"
var_label(codebook_data$trial_id) <- "Unique identifier of a trial"
var_label(codebook_data$conflict_condition) <- "Congruency of the previous and current trial (cc, ii, ci, ic)"
var_label(codebook_data$stim_type) <- "Congruency of the Stroop trial"
var_label(codebook_data$stimulus) <- "Word of the Stroop trial"
var_label(codebook_data$stim_color) <- "Ink of the Stroop trial"
var_label(codebook_data$response_time) <- "Response time to the Stroop trial in milliseconds"
var_label(codebook_data$is_previous_congruent) <- "Congruency of the previous trial"
var_label(codebook_data$is_congruent) <- "Congruency of the Stroop trial"
var_label(codebook_data$is_correct) <- "Correctness of the Stroop trial"
var_label(codebook_data$mean_reversal) <- "Mean number of reversals"
var_label(codebook_data$reversal_group) <- "Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores"
Create codebook
codebook(codebook_data)
Dataset name: codebook_data
The dataset has N=8087 rows and 14 columns. 8087 rows have no missing values on any column.
Metadata for search engines
|
#Variables
Unique identifier of the participant
Distribution of values for participant_id
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| participant_id | Unique identifier of the participant | character | 0 | 1 | 163 | 0 | 4 | 4 | 0 |
Unique identifier of the data collection site
Distribution of values for lab
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| lab | Unique identifier of the data collection site | character | 0 | 1 | 1 | 0 | 5 | 5 | 0 |
Unique identifier of pseudo randomized stimulus set that was shown to the participant
Distribution of values for loop_num
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| loop_num | Unique identifier of pseudo randomized stimulus set that was shown to the participant | numeric | 0 | 1 | 0 | 2 | 5 | 2.284283 | 1.793971 | <U+2587><U+2583><U+2583><U+2583><U+2583> |
Unique identifier of a trial
Distribution of values for trial_id
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| trial_id | Unique identifier of a trial | numeric | 0 | 1 | 1 | 103 | 199 | 102.2307 | 57.77753 | <U+2587><U+2587><U+2586><U+2587><U+2587> |
Congruency of the previous and current trial (cc, ii, ci, ic)
Distribution of values for conflict_condition
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| conflict_condition | Congruency of the previous and current trial (cc, ii, ci, ic) | character | 0 | 1 | 4 | 0 | 2 | 2 | 0 |
Congruency of the Stroop trial
Distribution of values for stim_type
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| stim_type | Congruency of the Stroop trial | character | 0 | 1 | 2 | 0 | 9 | 11 | 0 |
Word of the Stroop trial
Distribution of values for stimulus
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| stimulus | Word of the Stroop trial | character | 0 | 1 | 7 | 0 | 4 | 7 | 0 |
Ink of the Stroop trial
Distribution of values for stim_color
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| stim_color | Ink of the Stroop trial | character | 0 | 1 | 3 | 0 | 4 | 7 | 0 |
Correctness of the Stroop trial
Distribution of values for is_correct
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_correct | Correctness of the Stroop trial | numeric | 0 | 1 | 0 | 1 | 1 | 0.7972054 | 0.4021056 | <U+2582><U+2581><U+2581><U+2581><U+2587> |
Response time to the Stroop trial in milliseconds
Distribution of values for response_time
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| response_time | Response time to the Stroop trial in milliseconds | numeric | 0 | 1 | 177 | 731 | 1001 | 747.6543 | 167.275 | <U+2581><U+2582><U+2587><U+2587><U+2587> |
Congruency of the previous trial
Distribution of values for is_previous_congruent
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_previous_congruent | Congruency of the previous trial | numeric | 0 | 1 | 0 | 1 | 1 | 0.6353407 | 0.4813643 | <U+2585><U+2581><U+2581><U+2581><U+2587> |
Congruency of the Stroop trial
Distribution of values for is_congruent
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_congruent | Congruency of the Stroop trial | numeric | 0 | 1 | 0 | 0 | 1 | 0.4811426 | 0.4996752 | <U+2587><U+2581><U+2581><U+2581><U+2587> |
Mean number of reversals
Distribution of values for mean_reversal
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| mean_reversal | Mean number of reversals | numeric | 0 | 1 | 0 | 6.7 | 114 | 10.43327 | 13.28987 | <U+2587><U+2581><U+2581><U+2581><U+2581> |
Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores
Distribution of values for reversal_group
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| reversal_group | Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores | character | 0 | 1 | 2 | 0 | 3 | 4 | 0 |
JSON-LD metadata
The following JSON-LD can be found by search engines, if you share this codebook publicly on the web.
{
"name": "codebook_data",
"datePublished": "2021-01-28",
"description": "The dataset has N=8087 rows and 14 columns.\n8087 rows have no missing values on any column.\n\n\n## Table of variables\nThis table contains variable names, labels, and number of missing values.\nSee the complete codebook for more.\n\n|name |label | n_missing|\n|:---------------------|:----------------------------------------------------------------------------------------------------------------------------|---------:|\n|participant_id |Unique identifier of the participant | 0|\n|lab |Unique identifier of the data collection site | 0|\n|loop_num |Unique identifier of pseudo randomized stimulus set that was shown to the participant | 0|\n|trial_id |Unique identifier of a trial | 0|\n|conflict_condition |Congruency of the previous and current trial (cc, ii, ci, ic) | 0|\n|stim_type |Congruency of the Stroop trial | 0|\n|stimulus |Word of the Stroop trial | 0|\n|stim_color |Ink of the Stroop trial | 0|\n|is_correct |Correctness of the Stroop trial | 0|\n|response_time |Response time to the Stroop trial in milliseconds | 0|\n|is_previous_congruent |Congruency of the previous trial | 0|\n|is_congruent |Congruency of the Stroop trial | 0|\n|mean_reversal |Mean number of reversals | 0|\n|reversal_group |Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores | 0|\n\n### Note\nThis dataset was automatically described using the [codebook R package](https://rubenarslan.github.io/codebook/) (version 0.9.2).",
"keywords": ["participant_id", "lab", "loop_num", "trial_id", "conflict_condition", "stim_type", "stimulus", "stim_color", "is_correct", "response_time", "is_previous_congruent", "is_congruent", "mean_reversal", "reversal_group"],
"@context": "http://schema.org/",
"@type": "Dataset",
"variableMeasured": [
{
"name": "participant_id",
"description": "Unique identifier of the participant",
"@type": "propertyValue"
},
{
"name": "lab",
"description": "Unique identifier of the data collection site",
"@type": "propertyValue"
},
{
"name": "loop_num",
"description": "Unique identifier of pseudo randomized stimulus set that was shown to the participant",
"@type": "propertyValue"
},
{
"name": "trial_id",
"description": "Unique identifier of a trial",
"@type": "propertyValue"
},
{
"name": "conflict_condition",
"description": "Congruency of the previous and current trial (cc, ii, ci, ic)",
"@type": "propertyValue"
},
{
"name": "stim_type",
"description": "Congruency of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "stimulus",
"description": "Word of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "stim_color",
"description": "Ink of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "is_correct",
"description": "Correctness of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "response_time",
"description": "Response time to the Stroop trial in milliseconds",
"@type": "propertyValue"
},
{
"name": "is_previous_congruent",
"description": "Congruency of the previous trial",
"@type": "propertyValue"
},
{
"name": "is_congruent",
"description": "Congruency of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "mean_reversal",
"description": "Mean number of reversals",
"@type": "propertyValue"
},
{
"name": "reversal_group",
"description": "Whether the partcipant experienced a high or a low number of reversals based on the median split of all mean reversal scores",
"@type": "propertyValue"
}
]
}`